/**
  * Author: Mei
  * Date: 2020-12-13 15:11
  * Description:  array数组  为了把数组当做容器使用 不过这种数组拥有容器的特征
  * iterator begin end
  *
  * hashtable
  *
  */
#include "../head.h"

using namespace std;

int RandomNumber() { return (rand() % 100); }

int main() {
    array<int, 10> Array1;
    auto ite = Array1.begin();
    ite[0] = 10;
    const int c = Array1.at(9);
    cout << c << endl;

    generate(Array1.begin(), Array1.end(), RandomNumber);
    for (auto it : Array1) {
        cout << it << " ";
    }

    return 0;
}